﻿using Admin2024.Domain.Entity.System;
using Admin2024.Domain.ObjValue;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin2024.Domain.IDomainService.System.IPermissionService
{
    public interface IOperationManagementService
    {
        /// <summary>
        /// 创建操作权限
        /// </summary>
        /// <param name="appOperation"></param>
        /// <returns></returns>
        Task<DomainResult<AppOperation>> CreateOperation(AppOperation appOperation);

        /// <summary>
        /// 删除操作权限
        /// </summary>
        /// <param name="operId"></param>
        /// <returns></returns>
        Task<DomainResult<AppOperation>> DeleteOperation(Guid operId);
        //获取所有操作权限(分页)
        Task<DomainResult<List<AppOperation>>> GetOperationWithPagination(int page, int pageSize);


        Task<DomainResult<AppOperation>> GetOperationById(Guid id);

        Task<DomainResult<AppOperation>> UpdateOperationProfile(Guid Id, AppOperation entity);
    }
}
